#include<stdio.h>

int main()
{
    int c;
    int a = 10;
    c = a++;
    printf("先赋值后运算：\n");
    printf("Line 1 - c的值是%d\n",c);
    printf("Line 2 - a的值是%d\n", a );

    a = 10;
    c = a--;
    printf("Line 3 - c的值是%d\n",c);
    printf("Line 4 - c 的值是%d\n", a );

    printf("先运算后赋值:\n");
    a = 10;
    c = ++a;
    printf("Line 5 - c的值是%d\n", c);
    printf("Line 6 - a的值是%d\n",a);

    a = 10;
    c = --a;
    printf("Line 7 - c的值是%d\n",c);
    printf("Line 8 - a的值是%d\n", a);
}